/**
 * 
 * @author 魏康威
 *
 */
public class Rabbit {
	public static void main(String[] args) {
		int sum = 0;
		sum = Fib(12);
		System.out.println("一年之后共有：" + sum + "对兔子");
	}

	private static int Fib(int n) {// 递归实现
		if (n == 1 || n == 2)
			return 1;
		else
			return Fib(n - 1) + Fib(n - 2);
	}
}
